package org.flyframework
{
	import flash.events.Event;
	
	
	public class FlyCallback
	{
		
		public var listener:Function;
		
		
		//--------------------------------------------------------------------------
		// Init
		//--------------------------------------------------------------------------
		
		public function FlyCallback( listener:Function )
		{
			this.listener = listener;
		}
		
		
		//--------------------------------------------------------------------------
		// Overrides
		//--------------------------------------------------------------------------
		
		public function callListener( event:Event ):void
		{
			trace( "FlyCallback.callListener(): " + listener );
			
			this.listener( event );
		}
		
		/*
		public function apply( thisObject:Object, argArray:Array=null ):void
		{
			super.apply( thisObject, argArray );
		}
		
		public function call( thisObject:Object, parameter1:String=null ):void
		{
			super.call( thisObject, parameter1 );
		}
		*/
		
	}
}